package com.winkyle.woodenfish.widget;

import android.app.ProgressDialog;
import android.content.Context;

/**
 * TODO: 2018/6/21 修改一个好看的样式
 * @author winkyle
 * @date 2018/06/15
 * @description 自定义进度条对话框类
 */
public class CustomProgressDialog {
    private ProgressDialog progressDialog;

    public CustomProgressDialog(Context context) {
        progressDialog = new ProgressDialog(context);
    }

    public void setMessage(String message) {
        progressDialog.setMessage(message);
    }

    public boolean isShowing() {
        return progressDialog.isShowing();
    }

    public void show() {
        progressDialog.show();
    }

    public void dismiss() {
        progressDialog.dismiss();
    }

}
